import com.jfinal.weixin.sdk.utils.HttpUtils;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2018/8/18 0018.
 */
public class 新增商品 {
    public static void main(String[] strings){
        String url="http://127.0.0.1:8080/merchantApplet/addCommodity";
        Map params=new HashMap();
        params.put("name","商品1");
        params.put("originalMoney","150");
        params.put("money","100");
        params.put("oneMoney","1100");
        params.put("twoMoney","120");
        params.put("threeMoney","130");
        params.put("fourMoney","140");
        params.put("fiveMoney","150");
        params.put("description","商品描述AAAA");
        params.put("orgId","00015");
        params.put("id","0fec8341ec1849b4889533c6f7ff9bd0");
        params.put("imgPath","http://resource.xinrangj.com/applet/icon/images/marketing/2018081601.png,http://resource.xinrangj.com/applet/icon/images/marketing/2018081601.png" +
                ",http://resource.xinrangj.com/applet/icon/images/marketing/2018081601.png,http://resource.xinrangj.com/applet/icon/images/marketing/2018081601.png");
        String result=HttpUtils.get(url,params);
        System.out.println(result);
    }
}
